export default {
  num: [
    {
      required: true,
      message: "数量为必填",
      trigger: "change"
    },
    {
      pattern: /^(\d+\.?)?\d{0,2}$/,
      message: "请输入整数和小数",
      trigger: "blur"
    }
  ],
  price: [
    {
      required: true,
      message: "单价为必填",
      trigger: "change"
    },
    {
      pattern: /^(\d+\.?)?\d{0,2}$/,
      message: "请输入整数和小数",
      trigger: "blur"
    }
  ],
  sku: [{ required: true, message: "入库SKU必选", trigger: "blur" }]
};
